﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyMoviesBrowserLibrary.MyMovies
{
    public partial class Title
    {
        public string MovieDirectory
        {
            get
            {
                List<Disc> discs = Discs.Where(d => d.intTitle == intId && !string.IsNullOrEmpty(d.Location)).ToList();
                if (discs.Count > 0)
                    return discs.First().Location;
                else
                    return "";
            }
        }
    }
}
